<?php
header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); // Date in the past

////////////////////////////Common head
        $cache_time=2;
        $OJ_CACHE_SHARE=false;
    require_once('./include/db_info.inc.php');
        require_once('./include/setlang.php');
        $view_title= "$MSG_STATUS";


require_once("./include/const.inc.php");



$solution_id=0;
// check the top arg
if (isset($_GET['solution_id'])){
        $solution_id=intval($_GET['solution_id']);
}

$sql="select * from solution where solution_id=$solution_id LIMIT 1";
//echo $sql;




if($OJ_MEMCACHE){
        require("./include/memcache.php");
        $result = mysql_query_cache($sql);// or die("Error! ".mysql_error());
        if($result) $rows_cnt=count($result);
        else $rows_cnt=0;
}else{

        $result = mysql_query($sql);// or die("Error! ".mysql_error());
        if($result) $rows_cnt=mysql_num_rows($result);
        else $rows_cnt=0;
}

for ($i=0;$i<$rows_cnt;$i++){
if($OJ_MEMCACHE)
        $row=$result[$i];
else
        $row=mysql_fetch_array($result);

    echo $row['result'].",".$row['memory'].",".$row['time'];
}
if(!$OJ_MEMCACHE)mysql_free_result($result);

?>

